﻿using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Util;
using Android.Views;
using Android.Widget;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NightPlayer
{
    public class MarqueeTextView : TextView
    {
        public MarqueeTextView(Context ctx):base(ctx) {
            Initialize();
        }

        public MarqueeTextView(IntPtr javaReference,JniHandleOwnership transfer) : base(javaReference, transfer) { }

        public MarqueeTextView(Context ctx,IAttributeSet attrs,int defStyleAttr,int defStyleRes) :base(ctx,attrs,defStyleAttr,defStyleRes){
            Initialize();
        }
        public MarqueeTextView(Context context, IAttributeSet attrs) :
            base(context, attrs)
        {
            Initialize();
        }

        public MarqueeTextView(Context context, IAttributeSet attrs, int defStyle) :
            base(context, attrs, defStyle)
        {
            Initialize();
        }
        protected override void OnFocusChanged(bool gainFocus, FocusSearchDirection direction, Android.Graphics.Rect previouslyFocusedRect)
        {
            base.OnFocusChanged(true, direction, previouslyFocusedRect);
        }

        public override bool IsFocused {
            get { return true; }
        }

        public override bool HasFocus => true;

        private void Initialize()
        {
            
        }
    }
}